<template>
	<!--02-家长注册学生列表  -->
	<view>
		<!-- 自定义导航栏 -->
		<view class="navBarBox">
			<!-- 状态栏占位 -->
			<view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
			<!-- 真正的导航栏内容 -->
			<view class="navBar">
				<view class="goback">
					<view @click="goBack" class="goicon" style="background:url('../../../static/goback.png');background-size:contain;background-repeat: no-repeat;">
					</view>
				</view>
				<view class="titlen">学生列表</view>
				<view class="right">
				</view>
			</view>
		</view>
		<view class="content">
			<view class="common1 mt">
				<view class="touxiang">
					<image src="@/static/img/register/1head.png" mode=""></image>
					<text>周小花</text>
				</view>
				<view class="more">
					<view class="should">
						<text>成都市东风路小学</text>
						<view>待确认</view>
					</view>
					<view class="class">二年级2班</view>
					<view class="subject">
						<view>进修中课程：3</view>
						<view class="over">已结束课程：2</view>
					</view>
				</view>
			</view>

			<view class="common1 mt">
				<view class="touxiang">
					<image src="@/static/img/register/1head.png" mode=""></image>
					<text>周小花</text>
				</view>
				<view class="more">
					<view class="should">
						<text>成都市东风路小学</text>
						<view>待确认</view>
					</view>
					<view class="class">二年级2班</view>
					<view class="subject">
						<view>进修中课程：3</view>
						<view class="over">已结束课程：2</view>
					</view>
				</view>
			</view>

			<view class="add">
				<button type="default" hover-class="button-hover" @click="add">＋</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 状态栏高度
				statusBarHeight: 0,
				// 导航栏高度
				navBarHeight: 82 + 11,
			}
		},
		methods: {
			add() {
				uni.navigateTo({
					url: './parentRegister'
				})
			},
			goBack() {
				// 此处是写返回页面的方法、

				uni.navigateBack({
					delta: 1 //返回只上一级页面
				});
			}
		},
		//第一次加载时调用
		created() {
			//获取手机状态栏高度
			this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
		},
	}
</script>

<style lang="less">
	.navBarBox {
		background-color: #fff;
	}

	.navBarBox .navBar {
		padding: 3rpx 50rpx;
		padding-bottom: 8rpx;
		display: flex;
		justify-content: space-between;
		line-height: 93rpx;
		font-size: 40rpx;
	}

	.goback {
		flex: 1;
		height: 100%;
	}

	.goicon {
		width: 30rpx;
		height: 30rpx;
		background-color: #00BEA9;
		margin-top: 30rpx;
	}

	.titlen {
		font-size: 40rpx;
		flex: 1;
		height: 100%;

	}

	.right {
		flex: 1;
	}

	body {
		background-color: #fafafa;
	}

	.content {
		padding: 14rpx 30rpx 0;
	}

	.mt {
		margin-top: 18rpx;
	}

	.common1 {
		display: flex;
		justify-content: space-between;
		height: 242rpx;
		background-color: #fff;
		border-radius: 10rpx;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, .1);

		.touxiang {
			width: 200rpx;
			height: 242rpx;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			image {
				width: 130rpx;
				height: 130rpx;
			}

			text {
				color: rgb(60, 60, 60);
				font-size: 28rpx;
				margin-top: 18rpx;
			}
		}

		.more {
			width: 490rpx;
			margin-top: 36rpx;

			.should {
				height: 30rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				text {
					font-size: 30rpx;
					color: rgb(60, 60, 60);
				}

				view {
					width: 122rpx;
					height: 63rpx;
					background: url('@/static/img/register/tag.png') no-repeat;
					background-size: 122rpx 63rpx;
					font-size: 24rpx;
					color: #fff;
					text-align: center;
					line-height: 46rpx;
				}
			}

			.class {
				height: 70rpx;
				line-height: 70rpx;
				font-size: 26rpx;
				color: rgba(51, 51, 51, .8);
			}

			.subject {
				display: flex;

				view {
					width: 200rpx;
					height: 46rpx;
					border-radius: 22rpx;
					background-color: rgb(238, 238, 238);
					text-align: center;
					line-height: 46rpx;
					font-size: 22rpx;
					color: rgba(51, 51, 51, .8);
				}

				.over {
					margin-left: 10rpx;
				}
			}
		}
	}

	.add {
		margin-top: 144rpx;

		button {
			color: #fff;
			background-color: #2db3fe;
			box-shadow: 0 0 20rpx 3rpx rgba(180, 226, 251);
			font-size: 34rpx;
		}
	}

	.button-hover[type="default"] {
		color: #fff;
		background-color: #118ace;
	}
</style>
